package com.tuling.leetcode;

import javax.naming.OperationNotSupportedException;
import java.math.BigDecimal;
import java.text.NumberFormat;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author 林瑞涛
 * @desc
 * @date 2022年06月27日 11:57
 */
public class ReverseTest {

    public static void main(String[] args) {
       /* String txtMemo = "【活动名称】Order number：【订单号】Order completed，Amount of canceled order transaction 【商品售价*数量】";
        txtMemo = txtMemo.replace("活动名称", "满减")
                .replace("订单号", "11111")
                .replace("商品售价*数量", "100.00");

        System.out.println(txtMemo);*/


       /* int index = 0;
        while(true){
            index++;
            if(index == 9){
                System.out.println(index);
                System.out.println("进入 continue");
                continue;
            }else if(index == 11){
                System.out.println(index);
                System.out.println("进入 break");
                break;
            }
            System.out.println(index);
        }*/
        /*String shopIdString = "10000, 10010";
        String [] shopIdListStr = shopIdString.split(",");
        List<String> shopIdList = Arrays.asList(shopIdListStr);
        if(shopIdList.contains("10001")){
            System.out.println("10000");
        }*/


        /*System.out.println(Integer.valueOf("4").compareTo(Integer.valueOf("3"))>= 0);

        BigDecimal a = new BigDecimal("-1");
        System.out.println(BigDecimal.ZERO.compareTo(a));

        Map<String, String> map = new HashMap<>();
        map.put("1", "ONE");
        map.put("2", "TWO");
        System.out.println(map);*/

        /*String str = "000001";
        Integer num = Integer.valueOf(str);
        num++;
        String s = num.toString();
        System.out.println(s);*/
        /*Integer num = 100;
        String format = String.format("%06d", num);
        System.out.println(format);*/

        System.out.println("0 : -100  " + BigDecimal.ZERO.compareTo(new BigDecimal("-100")));
        System.out.println("0 : 100   " + BigDecimal.ZERO.compareTo(new BigDecimal("100")));
        System.out.println("0 : 0     " + BigDecimal.ZERO.compareTo(new BigDecimal("0")));



    }


}
